package com.itheima.app;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App2 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext2.xml");
        String[] name = context.getBeanDefinitionNames();
        for(String beanName : name){
            System.out.println(beanName);
        }
    }
}
